import request from "../utils"

export type AuditListType = '全部' | '维修部' | '后勤部' | '前端部' | '后端部'

export interface AuditList {
	type: AuditListType
}

export function fetchAuditList(params: AuditList ) {
	return request({
		url: '/api/audit/list',
		method: 'get',
		params
	})
}

export interface AuditListData {
	key: string | string[]
}

export function auditList(data: AuditListData ) {
	return request({
		url: '/api/audit',
		method: 'post',
		data
	})
}


export function fetchList() {
	return request({
		url: '/api/list',
		method: 'get',
	})
}